.class public Lrexsee/timer/Timer;
.super Ljava/lang/Object;
.source "Timer.java"


# static fields
.field public static final EVENT_ONTIMERTIMEOUT:Ljava/lang/String; = "onTimerTimeout"


# instance fields
.field private final mBrowser:Lrexsee/core/browser/Browser;

.field private mHandler:Landroid/os/Handler;

.field private final mId:Ljava/lang/String;

.field private final mInterval:I

.field private final mTimes:I

.field private times:I


# direct methods
.method public constructor <init>(Lrexsee/core/browser/Browser;Ljava/lang/String;II)V
    .locals 1
    .param p1, "browser"    # Lrexsee/core/browser/Browser;
    .param p2, "id"    # Ljava/lang/String;
    .param p3, "interval"    # I
    .param p4, "times"    # I

    .prologue
    .line 18
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 16
    const/4 v0, 0x0

    iput v0, p0, Lrexsee/timer/Timer;->times:I

    .line 19
    iput-object p2, p0, Lrexsee/timer/Timer;->mId:Ljava/lang/String;

    .line 20
    iput-object p1, p0, Lrexsee/timer/Timer;->mBrowser:Lrexsee/core/browser/Browser;

    .line 21
    iput p3, p0, Lrexsee/timer/Timer;->mInterval:I

    .line 22
    iput p4, p0, Lrexsee/timer/Timer;->mTimes:I

    .line 23
    return-void
.end method

.method static synthetic access$0(Lrexsee/timer/Timer;)I
    .locals 1

    .prologue
    .line 16
    iget v0, p0, Lrexsee/timer/Timer;->times:I

    return v0
.end method

.method static synthetic access$1(Lrexsee/timer/Timer;I)V
    .locals 0

    .prologue
    .line 16
    iput p1, p0, Lrexsee/timer/Timer;->times:I

    return-void
.end method

.method static synthetic access$2(Lrexsee/timer/Timer;)Lrexsee/core/browser/Browser;
    .locals 1

    .prologue
    .line 11
    iget-object v0, p0, Lrexsee/timer/Timer;->mBrowser:Lrexsee/core/browser/Browser;

    return-object v0
.end method

.method static synthetic access$3(Lrexsee/timer/Timer;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 10
    iget-object v0, p0, Lrexsee/timer/Timer;->mId:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$4(Lrexsee/timer/Timer;)I
    .locals 1

    .prologue
    .line 13
    iget v0, p0, Lrexsee/timer/Timer;->mTimes:I

    return v0
.end method

.method static synthetic access$5(Lrexsee/timer/Timer;)Landroid/os/Handler;
    .locals 1

    .prologue
    .line 15
    iget-object v0, p0, Lrexsee/timer/Timer;->mHandler:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$6(Lrexsee/timer/Timer;)I
    .locals 1

    .prologue
    .line 12
    iget v0, p0, Lrexsee/timer/Timer;->mInterval:I

    return v0
.end method


# virtual methods
.method public getCurrent()I
    .locals 1

    .prologue
    .line 51
    iget v0, p0, Lrexsee/timer/Timer;->times:I

    return v0
.end method

.method public getInterval()I
    .locals 1

    .prologue
    .line 45
    iget v0, p0, Lrexsee/timer/Timer;->mInterval:I

    return v0
.end method

.method public getTimes()I
    .locals 1

    .prologue
    .line 48
    iget v0, p0, Lrexsee/timer/Timer;->mTimes:I

    return v0
.end method

.method public start()V
    .locals 4

    .prologue
    .line 26
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lrexsee/timer/Timer;->mHandler:Landroid/os/Handler;

    .line 27
    iget-object v0, p0, Lrexsee/timer/Timer;->mHandler:Landroid/os/Handler;

    new-instance v1, Lrexsee/timer/Timer$1;

    invoke-direct {v1, p0}, Lrexsee/timer/Timer$1;-><init>(Lrexsee/timer/Timer;)V

    .line 38
    iget v2, p0, Lrexsee/timer/Timer;->mInterval:I

    int-to-long v2, v2

    .line 27
    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 39
    return-void
.end method

.method public stop()V
    .locals 1

    .prologue
    .line 41
    const/4 v0, 0x0

    iput-object v0, p0, Lrexsee/timer/Timer;->mHandler:Landroid/os/Handler;

    .line 42
    return-void
.end method
